Skip to main content

ossCreate

Description

Create Oss instance

Request Method

POST

Request Path

/customer/oss/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
resourcePlanTypeBODYstringYesNo sample value for this parameter.resource plan type,StandardStoragePackage/OutboundTrafficPlan
periodBODYintegerYesNo sample value for this parameter.period
costBODYnumberYesNo sample value for this parameter.cost
regionIdBODYstringYesNo sample value for this parameter.region
billingMethodBODYstringYesNo sample value for this parameter.billing method
voucherInstanceIdBODYstringYesNo sample value for this parameter.Voucher instance id
pricingCycleBODYstringYesNo sample value for this parameter.No description for this parameter.
couponInstanceIdBODYstringYesNo sample value for this parameter.Coupon instance id
capacityBODYintegerYesNo sample value for this parameter.package capacity, GB

Return data

NameTypeSample valueDescription
resultobject`{"instanceId":"OSS-OPT339848584402317312","orderId":2.02207261916529997E+18}`No description for this parameter.
resultCodestring0No description for this parameter.
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"instanceId":"OSS-OPT339848584402317312",
"orderId":2.02207261916529997E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}